#ifndef EC800M_H
#define EC800M_H


#define HUWWEIYUN_MQTT_IP "02d2570580.st1.iotda-device.cn-north-4.myhuaweicloud.com	"
// MQTT客户端ID
#define MQTT_CLIENT_ID "683487aa9314d118511fc556_WS63_Car_0_0_2025052714"
// MQTT用户名
#define MQTT_USER_NAME "683487aa9314d118511fc556_WS63_Car"
// MQTT密码
#define MQTT_PASS_WORD "8593b77af27ecce26f8f5eae6a7659ba6960e7532fd123c3bc6aaeee574f50f5"

#define UART2_RECV_SIZE 512
typedef struct {
    uint8_t recv[UART2_RECV_SIZE];
    uint8_t recv_len;
    uint8_t recv_flag;
} uart2_recv_data;

typedef struct {
    char *ATSendStr; // 发送指令
    char *ATRecStr;  // 回复指令
} EC800_ATCmds;




void EC800M_init(void);
void get_gps_coordinates(const char *input);
uint32_t uart_send_buff(uint8_t *str, uint16_t len);
void uart2_recv_Data(void);
void uart2_send_Data(void);


void uart2_init(void);

int ec800_Call_Phone(void);
#endif